<template>
  <footer class="footer">
    <div class="footer-content">
      <div class="footer-section">
        <h3>关于本站</h3>
        <p>
          这是一个基于 Vue 3 + Spring Boot
          开发的个人博客网站，用于展示个人项目、笔记和文章。
        </p>
      </div>

      <div class="footer-section">
        <h3>联系方式</h3>
        <div class="contact-links">
          <span>邮箱</span>
          <span>19735789500@qq.com</span>
          <a
            href="https://github.com/18755120710"
            target="_blank"
            class="contact-item"
          >
            <img
              src="https://vue-wj.oss-cn-beijing.aliyuncs.com/icon/github.png"
              alt="GitHub"
            />
            <span>GitHub</span>
          </a>
        </div>
      </div>

      <div class="footer-section">
        <h3>技术栈</h3>
        <div class="tech-stack">
          <span>Vue 3</span>
          <span>Spring Boot</span>
        </div>
      </div>
    </div>

    <div class="footer-bottom">
      <p>© 2024 个人网站. All Rights Reserved.</p>
      <p>
        <a href="https://beian.miit.gov.cn/" target="_blank">备案号：xxx</a>
      </p>
    </div>
  </footer>
</template>

<script setup>
</script>

<style lang="scss" scoped>
.footer {
  background-color: #dbf6fc79;
  padding: 40px 20px 20px;
  margin-top: 40px;

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;

    .footer-section {
      h3 {
        font-size: 18px;
        color: #2c3e50;
        margin-bottom: 15px;
        position: relative;
        padding-bottom: 10px;

        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          width: 30px;
          height: 2px;
          background: #3498db;
        }
      }

      p {
        color: #666;
        line-height: 1.6;
      }

      .contact-links {
        display: flex;
        gap: 20px;

        .contact-item {
          display: flex;
          align-items: center;
          gap: 8px;
          color: #666;
          text-decoration: none;
          transition: color 0.3s;

          img {
            width: 20px;
            height: 20px;
          }

          &:hover {
            color: #3498db;
          }
        }
      }

      .tech-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        span {
          background: #77d9f1;
          padding: 4px 12px;
          border-radius: 15px;
          font-size: 14px;
          color: #ffffff;
          transition: all 0.3s;

          &:hover {
            background: #e6f7ff;
            color: #1890ff;
            transform: translateY(-2px);
          }
        }
      }
    }
  }

  .footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;

    p {
      margin: 5px 0;
    }

    a {
      color: #666;
      text-decoration: none;
      transition: color 0.3s;

      &:hover {
        color: #3498db;
      }
    }
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 15px 15px;

    .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }
}
</style> 